import Config from '@/config/config.js'
export default {
	data() {
		return {
			statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
			screenWidth: uni.getSystemInfoSync().windowWidth,
			screenHeight: uni.getSystemInfoSync().windowHeight,
		}
	},
	filters: {

	},
	methods: {
		// 跳转
		goto(url, params) {
			uni.$u.route({
				url: url,
				params
			});
		},
		// 拨打电话
		callPassenger(phone) {
			uni.makePhoneCall({
				phoneNumber: phone,
				success: (res) => {
					console.log('调用成功!')
				},
			})
		},
		pageBack(val) {
			console.log('val',val);
			uni.navigateBack({
				delta: val
			})
		},
		backHome(){
			uni.reLaunch({
				url: '/pages/tabBarIndex/homeIndex'
			})
		}
	}
}